public class Control
{

	
	public static void readKeyPress(int keyCode)
	{

		switch(keyCode)
        {
        	case -6:
        		Define.KEY |= Define.SOFT_KEY_LEFT;
        		break;
        	
        	case -7:
        		Define.KEY |= Define.SOFT_KEY_RIGHT;
        		break;
        
        	case 48:
        		Define.KEY |= Define.GK_0;
        		break;
        	
        	case 49:
        		Define.KEY |= Define.GK_1;
        		break;        	
 
        	case 50:
        		Define.KEY |= Define.GK_2;
        		break;        		
        
        	case 51:
        		Define.KEY |= Define.GK_3;
        		break;  
        		
        	case 52:
        		Define.KEY |= Define.GK_4;
        		break; 
        		
        	case 53:
        		Define.KEY |= Define.GK_5;
        		break; 
        		
        	case 54:
        		Define.KEY |= Define.GK_6;
        		break; 
        		
        	case 55:
        		Define.KEY |= Define.GK_7;
        		break; 
        		
        	case 56:
        		Define.KEY |= Define.GK_8;
        		break;
        		
        	case 57:
        		Define.KEY |= Define.GK_9;
        		break; 
        }
		
	}
	
	
	
	
	
	public static void readKeyRelease(int keyCode)
	{
		
		switch(keyCode)
        {
        	case -6:
        		Define.KEY &= ~Define.SOFT_KEY_LEFT;
        		break;
        	
        	case -7:
        		Define.KEY &= ~Define.SOFT_KEY_RIGHT;
        		break;
        
        	case 48:
        		Define.KEY &= ~Define.GK_0;
        		break;
        	
        	case 49:
        		Define.KEY &= ~Define.GK_1;
        		break;        	
 
        	case 50:
        		Define.KEY &= ~Define.GK_2;
        		break;        		
        
        	case 51:
        		Define.KEY &= ~Define.GK_3;
        		break;  
        		
        	case 52:
        		Define.KEY &= ~Define.GK_4;
        		break; 
        		
        	case 53:
        		Define.KEY &= ~Define.GK_5;
        		break; 
        		
        	case 54:
        		Define.KEY &= ~Define.GK_6;
        		break; 
        		
        	case 55:
        		Define.KEY &= ~Define.GK_7;
        		break; 
        		
        	case 56:
        		Define.KEY &= ~Define.GK_8;
        		break;
        		
        	case 57:
        		Define.KEY &= ~Define.GK_9;
        		break; 
        }
	}
	
	
	
	
	
	
}